﻿@model CultuRAM.Models.Comment

@{
    ViewBag.Title = "Eliminar";
}

<h4>Eliminar Comentário</h4><br/>

@using (Ajax.BeginForm("DeletePv", "Comment", new AjaxOptions
{
    UpdateTargetId = "tabEventComRight",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "POST",
    OnSuccess = "UpdateEventCom(" + @Model.Event.EventId + ")"
}))
{

    <fieldset>
        <legend>EventPropertyValue</legend>
        @Html.HiddenFor(model => model.CommentId)
        @Html.HiddenFor(model => model.Event.EventId, new { id = "EventId" }) @*//NAO ALTERAR*@
        @*@Html.HiddenFor(model => model.Event.Title)*@
        
        <p>
            <span class="display-field">
                <b>@Html.DisplayNameFor(model => model.Hide): </b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.Hide)
            </span>
        </p>

        <p>
            <span class="display-field">
                <b>@Html.DisplayNameFor(model => model.Name): </b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.CommentText)
            </span>
        </p>
        <p>
            <span class="display-field">
                <b>@Html.DisplayNameFor(model => model.Name): </b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.CommentText)
            </span>
        </p>
    </fieldset>
    
    <br/><br/>
    
    <b>ATENÇÃO!</b><br />
    <span>O registo será eliminado definitivamente. Pretende Continuar?</span>
    <p>
        <br/><br />
        <button  type="submit" value="Eliminar" class="btn btn-danger">Sim</button>
        @Ajax.ActionLink("Não", "Default", null, new AjaxOptions()
            {
                UpdateTargetId = "tabEventComRight",
                InsertionMode = InsertionMode.Replace,
                OnSuccess = "ComBgColorClear()",
            }, new { @class = "btn btn-default" }
        )
    </p>  
    
}
